package com.lg.system.main.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.lg.utils.PageModel;

/**
 * <p>
 * 
 * </p>
 *
 * @author dl
 * @since 2018-03-28
 */
@TableName("sys_online")
public class Online extends PageModel {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("table_name")
    private String tableName;

    @TableField("table_note")
    private String tableNote;

    @TableField("gmt_create")
    private Date gmtCreate;

    private String engine;

    private String position;

    private String prefix;
    
    private String author;
    
    @TableField("file_override")
    private int fileOverride;
    
    private int open;
    
    private int resultmap;
    
    @TableField("column_list")
    private int columnList;
    
    
    @TableField("enable_cache")
    private int enableCache;
    
    private String location;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
    public String getTableNote() {
        return tableNote;
    }

    public void setTableNote(String tableNote) {
        this.tableNote = tableNote;
    }
    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
    public String getEngine() {
        return engine;
    }

    public void setEngine(String engine) {
        this.engine = engine;
    }

    public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Tables{" +
        "id=" + id +
        ", tableName=" + tableName +
        ", tableNote=" + tableNote +
        ", gmtCreate=" + gmtCreate +
        ", engine=" + engine +
        ", position=" + position +
        ", prefix=" + prefix +
        ", author=" + author +
        ", fileOverride=" + fileOverride +
        ", open=" + open +
        ", resultmap=" + resultmap +
        ", columnList=" + columnList +
        ", enableCache=" + enableCache +
        "}";
    }

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public int getFileOverride() {
		return fileOverride;
	}

	public void setFileOverride(int fileOverride) {
		this.fileOverride = fileOverride;
	}

	public int getOpen() {
		return open;
	}

	public void setOpen(int open) {
		this.open = open;
	}

	public int getResultmap() {
		return resultmap;
	}

	public void setResultmap(int resultmap) {
		this.resultmap = resultmap;
	}

	public int getColumnList() {
		return columnList;
	}

	public void setColumnList(int columnList) {
		this.columnList = columnList;
	}

	public int getEnableCache() {
		return enableCache;
	}

	public void setEnableCache(int enableCache) {
		this.enableCache = enableCache;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}
    
    
}
